/*
 * BackupDataBO.java
 *
 * Created on April 7, 2007, 8:44 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.group1E.data;

/** This class basically contains metadata for files stored in the database
 *in the same table.
 *
 * @author tkulbeth
 */
public class BackupDataBO extends BusinessObject{
    
	private String fileName;
	private String membershipID;
	private String dateUploaded;
	private String ext;
	private double fileSize;
	private String status;
        private String fileType;
    
    
    /** Creates a new instance of BackupDataBO with an ID
     *@param id contains the ID for this coupon
     */
    BackupDataBO(String id) {
        setId(id);
        setIsDirty(true);
    }

    /** Retrieves the filename of the file stored.
     *@return fileName
     */
    public String getFileName() {
        return fileName;
    }

    /** sets the file name of the stored file.
     *@param fileName contains the file name
     */
    public void setFileName(String fileName) {
        this.setIsDirty(true);
        this.fileName = fileName;
    }

    /** Retrieves the membership ID of the member to whom the file belongs.
     *@return membershipID
     */
    public String getMembershipID() {
        return membershipID;
    }

    /** sets the membership ID of the member to whom the file belongs.
     *@param membershipID contains the member's id.
     */
    public void setMembershipID(String membershipID) {
        this.setIsDirty(true);
        this.membershipID = membershipID;
    }

    /** returns the date the file was uploaded
     *@return dateAdded
     */
    public String getDateUploaded() {
        return dateUploaded;
    }

    /**
     * Sets the date the file was uploaded
     * 
     * @param dateUploaded contains the date the file was uploaded
     */
    public void setDateUploaded(String dateUploaded) {
        this.setIsDirty(true);
        this.dateUploaded = dateUploaded;
    }

    /** retrieves the file extension
     *@return ext
     */
    public String getExt() {
        return ext;
    }

    /** sets the file extension
     *@param ext contains the file extension
     */
    public void setExt(String ext) {
        this.setIsDirty(true);
        this.ext = ext;
    }

   /** returns the size of the file in storage
    *@return fileSize
    */
    public double getFileSize() {
        return fileSize;
    }

    /** sets the file size
     *@param fileSize contains the file size
     */
    public void setFileSize(double fileSize) {
        this.setIsDirty(true);
        this.fileSize = fileSize;
    }

    /** returns the file's status (i.e., temporary or permananent)
     *@return status
     */
    public String getStatus() {
        return status;
    }

    /** sets the file's status
     *@param status contains the file's status
     */
    public void setStatus(String status) {
        this.setIsDirty(true);
        this.status = status;
    }

    /** gets the file type
     *@return fileType
     */
    public String getFileType() {
        return fileType;
    }

    /** sets the file type
     *@param fileType contains the file type
     */
    public void setFileType(String fileType) {
        this.setIsDirty(true);
        this.fileType = fileType;
    }

}
